package com.wyh.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/11/18 17:29
 */
@RestController
@Slf4j
@RefreshScope
public class ConfigController {

    @Value("${info.configinfo}")
    private String configInfo;

    @GetMapping(value = "/configInfo")
    public String getInfo(){
        return configInfo;
    }
}
